<?php /* Smarty version Smarty-3.1.19, created on 2017-11-10 15:14:53
         compiled from "D:\phpStudy\WWW\zhxykaoqin\sdk\theme\admin\default\views\date\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:209635a054488119776-61171224%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7e5a75206558803e4ff447a973442a476c0bcac3' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\zhxykaoqin\\sdk\\theme\\admin\\default\\views\\date\\edit.html',
      1 => 1510298084,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '209635a054488119776-61171224',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5a0544881e0b24_00823693',
  'variables' => 
  array (
    'row' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a0544881e0b24_00823693')) {function content_5a0544881e0b24_00823693($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="main-content">
<div class="page-content">
  <div class="page-content-area" style="opacity: 0.8;"> <br>
    <div class="page-header">
      <h1> 出校日期 <small><i class="ace-icon fa fa-angle-double-right"></i> <?php if ($_smarty_tpl->tpl_vars['row']->value['d_id']) {?>编辑<?php } else { ?>新增<?php }?>域名 </small> </h1>
    </div>
    <div class="row">
      <div class="panel panel-default">
        <div class="panel-body table-responsive">
          <form method="post" class="form-horizontal" role="form" id="submitform" onsubmit="return false">
			<div class="form-group ">
              <div class="col-md-6">
               <label class="control-label" for="name">学校名称</label>
                <input type="text" class="form-control" id="da_school" name="da_school" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['da_school'];?>
" required>
                <label class="control-label" for="name">出校日期：</label>
                <input type="checkbox"  name="start" value="1" required >周一
                <input type="checkbox"  name="start" value="2" required >周二
                <input type="checkbox" name="start" value="3" required>周三
                <input type="checkbox" name="start" value="4" required >周四
                <input type="checkbox" name="start" value="5" required >周五
                <input type="checkbox"  name="start" value="6" required >周六
                <input type="checkbox"  name="start" value="7" required >周日
               <input type="hidden" value="" name="da_start" id="wang"/>
              </div>
            </div>
        
            <div class="form-group">
              <div class="col-md-6">
                <button  type="button" class="btn btn-primary btn-lg btn-submit" onclick="fun()">提交</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<script>
var isbusy = false;
$(function(){
	$('#submitform').validate({
		focusInvalid: true,
		rules: {
			//title: {
				//required: true
			//}
		}
	});
	$('.btn-submit').click(function(){
		if(!$('#submitform').valid())return false;
		if(isbusy)return false;
		isbusy = true;
		tooltipbox.show('正在执行操作...');
		$.post(location.href, $('#submitform').serialize(), function(res){
		    if(res.code == 1){
				location.href = '<?php echo siteurl("con=admin/date");?>
';
			}
			tooltipbox.show(res.msg);	
			isbusy = false;
		}, 'json').error(function(a, b, c){
			tooltipbox.show('数据或网络错误');
			isbusy = false;
		});
	});
});
function fun(){
    obj = document.getElementsByName("start");
    check_val = [];
    for(k in obj){
        if(obj[k].checked)
            check_val.push(obj[k].value);
    }

 $('#wang').val(check_val);
    
}
</script> 
<?php echo $_smarty_tpl->getSubTemplate ('public/footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 <?php }} ?>
